package com.duoqin.payservice.data;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class AccountsResponse {

    /**
     * code : 0
     * msg : 成功
     * data : [{"id":4,"userId":3,"billingType":0,"balance":63.17,"expiredAt":1566115641167,"createAt":1540195641167,"modifyAt":1541063472812,"commodityId":1}]
     */

    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 4
         * userId : 3
         * billingType : 0
         * balance : 63.17
         * expiredAt : 1566115641167
         * createAt : 1540195641167
         * modifyAt : 1541063472812
         * commodityId : 1
         */

        @SerializedName("id")
        private int id;
        @SerializedName("userId")
        private int userId;
        @SerializedName("billingType")
        private int billingType;
        @SerializedName("balance")
        private double balance;
        @SerializedName("expiredAt")
        private long expiredAt;
        @SerializedName("createAt")
        private long createAt;
        @SerializedName("modifyAt")
        private long modifyAt;
        @SerializedName("commodityId")
        private int commodityId;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public int getBillingType() {
            return billingType;
        }

        public void setBillingType(int billingType) {
            this.billingType = billingType;
        }

        public double getBalance() {
            return balance;
        }

        public void setBalance(double balance) {
            this.balance = balance;
        }

        public long getExpiredAt() {
            return expiredAt;
        }

        public void setExpiredAt(long expiredAt) {
            this.expiredAt = expiredAt;
        }

        public long getCreateAt() {
            return createAt;
        }

        public void setCreateAt(long createAt) {
            this.createAt = createAt;
        }

        public long getModifyAt() {
            return modifyAt;
        }

        public void setModifyAt(long modifyAt) {
            this.modifyAt = modifyAt;
        }

        public int getCommodityId() {
            return commodityId;
        }

        public void setCommodityId(int commodityId) {
            this.commodityId = commodityId;
        }
    }
}
